package org.kazuhiko.rpg.server;

import java.io.IOException;

public class Boot
{
	public static void main( String[] args )
	{
		boolean showGui = false;
		
		if( args.length >= 2 )
		{
			if( args[0].equals( "-gui" ) )
			{
				if( args[1].equals( "true" ) || args[1].equals( "TRUE" ) )
				{
					showGui = true;
				}
			}
		}
		
		try
		{
			Server.getServer().start( showGui );
		}
		catch( IOException e )
		{
			e.printStackTrace();
		}
	}
}
